<template>
    <div id="show">
        {{id}}
        <h4>{{des.title}}</h4>
        <p v-html="des.content"></p>

    </div>
</template>

<script>
    import kit from '../../kits/apikit';
    import {Toast} from 'mint-ui';

    export default{
        data(){
            return{
                id:'',
                des:{}
            }
        },
        created(){
            this.id = this.$route.params.id;
            this.getDes();
        },
        methods:{
            getDes(){
                var url = kit.apikit+'type=getdesc&id='+this.id;
                this.$http.get(url).then(function (response) {
                    if(response.body.status!=0){
                        Toast('获取失败');
                        return;
                    }
                    this.des = response.body.message;
                })
            }
        }

    }
</script>
<style scoped>

    h4{
        color: #007aff;
        height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #ccc;

    }
    #show{
        padding:0 5px;
    }
</style>